package cn.javaxc.mvcwork.controller;
import cn.javaxc.mvcwork.modules.login.*;
import javax.servlet.ServletContext;
import javax.servlet.http.*;




public class SessionAttributeListener implements HttpSessionListener
{ 
	public void sessionCreated(HttpSessionEvent event) {
		HttpSession session = event.getSession();
		session.setAttribute("template",new TemplateBean());

	}


  
  public void sessionDestroyed(HttpSessionEvent event) {
    if (System.getProperty("DEBUG") != null) {
      System.out.println("ContextSessionListener-> sessionDestroyed");
    }
  }
}
